package team.you.ticket.pojo;

import java.io.Serializable;
import java.util.Date;

public class Ticket implements Serializable {
    private String id;

    private String userid;

    private String carId;

    private String trainNumId;

    private String ticketType;

    private Integer price;

    private Date validTime;

    private String type;

    private Integer checkTicket;

    private Integer seatNum;

    private String remarks;

    public  Ticket()
    {

    }

    public Ticket(String id, String userid, String carId, String trainNumId, String ticketType, Integer price, Date validTime, String type, Integer checkTicket, Integer seatNum, String remarks) {
        this.id = id;
        this.userid = userid;
        this.carId = carId;
        this.trainNumId = trainNumId;
        this.ticketType = ticketType;
        this.price = price;
        this.validTime = validTime;
        this.type = type;
        this.checkTicket = checkTicket;
        this.seatNum = seatNum;
        this.remarks = remarks;
    }

    private static final long serialVersionUID = 1L;

    public String getId() {
        return id;
    }

    public void setId(String id) {
        this.id = id == null ? null : id.trim();
    }

    public String getUserid() {
        return userid;
    }

    public void setUserid(String userid) {
        this.userid = userid == null ? null : userid.trim();
    }

    public String getCarId() {
        return carId;
    }

    public void setCarId(String carId) {
        this.carId = carId == null ? null : carId.trim();
    }

    public String getTrainNumId() {
        return trainNumId;
    }

    public void setTrainNumId(String trainNumId) {
        this.trainNumId = trainNumId == null ? null : trainNumId.trim();
    }

    public String getTicketType() {
        return ticketType;
    }

    public void setTicketType(String ticketType) {
        this.ticketType = ticketType;
    }

    public Integer getPrice() {
        return price;
    }

    public void setPrice(Integer price) {
        this.price = price;
    }

    public Date getValidTime() {
        return validTime;
    }

    public void setValidTime(Date validTime) {
        this.validTime = validTime;
    }

    public String getType() {
        return type;
    }

    public void setType(String type) {
        this.type = type;
    }

    public Integer getCheckTicket() {
        return checkTicket;
    }

    public void setCheckTicket(Integer checkTicket) {
        this.checkTicket = checkTicket;
    }

    public Integer getSeatNum() {
        return seatNum;
    }

    public void setSeatNum(Integer seatNum) {
        this.seatNum = seatNum;
    }

    public String getRemarks() {
        return remarks;
    }

    public void setRemarks(String remarks) {
        this.remarks = remarks == null ? null : remarks.trim();
    }
}